Page({
    data: {
      designs: [
        { id: 1, time: '2025-05-30', schemeName: '客厅设计' },
        { id: 2, time: '2025-05-29', schemeName: '卧室设计' },
        { id: 3, time: '2025-05-29', schemeName: '客厅设计' },
        { id: 4, time: '2025-05-29', schemeName: '卫生间设计' },
        // 更多设计项...
      ],
      furnitureOptions: ['沙发', '椅子', '桌子', '灯具'],
      furnitureIndex: 0,
      categories: [
        {
          name: '沙发',
          items: [
            { id: 1, image: '/images/sofa1.jpg' },
            { id: 2, image: '/images/sofa2.jpg' },
            { id: 3, image: '/images/sofa3.jpg' },
            // 更多沙发图片...
          ],
        },
        {
          name: '书桌',
          items: [
            { id: 1, image: '/images/chair1.jpg' },
            { id: 2, image: '/images/chair2.jpg' },
            { id: 3, image: '/images/chair3.jpg' },
            // 更多椅子图片...
          ],
        },
        // 更多类别...
      ],
    },
    bindFurnitureChange(e) {
      this.setData({
        furnitureIndex: e.detail.value,
      });
    },
    loadMoreCategory(e) {
      const category = e.currentTarget.dataset.category;
      console.log('加载更多', category);
      // 实现加载更多逻辑
    },
  });